#ifndef StringFilter_First
#ifdef __GNUG__
#pragma interface
#endif
#define StringFilter_First

#include "StreamBuf.h"

class Stream;

//---- StringFilter ------------------------------------------------------------

class StringFilter: public StreamBuf {
protected:
	int eof;
	bool closed;
protected:
	StringFilter();
};

//---- StringEncoder -----------------------------------------------------------

class StringEncoder: public StringFilter {
	int col;
public:
	StringEncoder();
	int Overflow(u_char*, int);
	void Close();
};

//---- StringDecoder -----------------------------------------------------------

class StringDecoder: public StringFilter {
public:
	StringDecoder();
	int Underflow(u_char *bp, int size);
};

#endif

